<?php
/* @var $this TeamController */
/* @var $model Team */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'team-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'short_name'); ?>
		<?php echo $form->textField($model,'short_name',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'short_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'full_name'); ?>
		<?php echo $form->textField($model,'full_name',array('size'=>20,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'full_name'); ?>
	</div>

	
	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>3,'maxlength'=>100)); ?>		
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email_distribution'); ?>
		<?php echo $form->textField($model,'email_distribution',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'email_distribution'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pad_url'); ?>
		<?php echo $form->textField($model,'pad_url',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'pad_url'); ?>
	</div>

<?php if(Yii::app()->user->can_create_edit_roles): ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'enabled'); ?>
				<?php echo $form->dropDownList($model, 'enabled',
												array('1'=>'Yes',
													  '0'=>'No',
													  ),
												array('empty'=>'','class'=>'dropbinary'));?>		
		<?php echo $form->error($model,'enabled'); ?>
	</div>

<?php endif; ?>
<br>
	<div class="buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->